package com.jiawang.core.servlet;

import com.jiawang.core.annotations.component.JiaComponent;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

/**
 * @author LiJiaWang
 * 创建时间: 13:05
 * 项目的名字: jio_writer_tomcat
 * <p style="color:#33CCFF">请求</p>
 */
@JiaComponent
public class RequestBaseServlet {
    /**
     * 头部信息
     */
    private List<String> list = new LinkedList<>();
    /**
     * 参数信息
     */
    private Map<String, String> params = new HashMap<>();
    /**
     * 请求头
     */
    private Map<String, String> headerMap = new HashMap<>();
    /**
     * 请求体
     */
    private Object body;
    /**
     * 请求方式
     */
    private String requestMethod;
    /**
     * 请求url
     */
    private String url;
    /**
     * 请求协议版本
     */
    private String version;



    public List<String> getList() {
        return list;
    }


    public Map<String, String> getParams() {
        return params;
    }

    public void setParams(Map<String, String> params) {
        this.params = params;
    }

    public Map<String, String> getHeaderMap() {
        return headerMap;
    }

    public void setHeaderMap(Map<String, String> headerMap) {
        this.headerMap = headerMap;
    }

    public Object getBody() {
        return body;
    }

    public void setBody(Object body) {
        this.body = body;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}
